package com.fgi.interview.test.geekbang.anonymous;

/**
 * @author HanXu
 * @date 2023/9/17
 **/
public class Son {

    private UnitSpec unitSpec;

    private UnitSpecAbs unitSpecAbs;

    // TODO 匿名内部类
    public Son(UnitSpec unitSpec, UnitSpecAbs unitSpecAbs) {
        this.unitSpec = new UnitSpec() {
            @Override
            public double getNumSpec() {
                return 0;
            }

            @Override
            public String getProducer() {
                return null;
            }
        };
    }


}
